package cn.wtg.kotlindemo.testMvvm

import android.os.Bundle
import cn.wtg.kotlindemo.BR
import cn.wtg.kotlindemo.R
import cn.wtg.kotlinlib.baseUi.BaseMvvmActivity
import cn.wtg.kotlindemo.databinding.ActivityMvvmBinding

/**
 * author: wtg
 * time: 2022/11/28
 * desc:
 */
class MvvmActivity : BaseMvvmActivity<ActivityMvvmBinding, MvvmViewModel>() {
    override fun getLayoutRes(): Int {
        return R.layout.activity_mvvm
    }

    override fun getInitViewModelId(): Int {
        return BR.mvvmViewModel
    }

    override fun initView(savedInstanceState: Bundle?) {

    }

    override fun getInitViewModel(): MvvmViewModel {
        return MvvmViewModel(this)
    }

}